import { request } from '@umijs/max';

// 查询登录日志
export async function queryLoginLog(params) {
  return request('/api/system/log/login', {
    method: 'GET',
    params,
  });
}

// 删除登录日志
export async function deleteLoginLog(ids) {
  return request('/api/system/log/login', {
    method: 'DELETE',
    data: { ids },
  });
}

// 查询接口日志
export async function queryApiLog(params) {
  return request('/api/system/log/api', {
    method: 'GET',
    params,
  });
}

// 查询错误日志
export async function queryErrorLog(params) {
  return request('/api/system/log/error', {
    method: 'GET',
    params,
  });
} 
